import Vue from 'vue'
import VueRouter from 'vue-router'
import CampusBinhai from '../views/CampusBinhai.vue'
import CampusChashan from '../views/CampusChashan.vue'
import Chanshan1 from '../views/Chanshan1.vue'
import Chanshan2 from '../views/Chanshan2.vue'
import Chanshan3 from '../views/Chanshan3.vue'
import CampusYueqing from '../views/CampusYueqing.vue'
import StudentSystem from '../views/StudentSystem.vue'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'CampusBinhai',
    component: CampusBinhai
  },
  // {
  //   path: '/about',
  //   name: 'about',
  //   component: function () {
  //     return import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  //   }
  // },
  {
  path: '/CampusYueqing',
  name: 'CampusYueqing',
  component: CampusYueqing
  }, 
  {
    path: '/StudentSystem',
    name: 'StudentSystem',
    component: StudentSystem
    }, 
  {
    path: '/CampusChashan',
    name: 'CampusChashan',
    component: CampusChashan,
    children:[
      {
        path:'Chanshan1',
      component:Chanshan1
    },
      {
        path:'Chanshan2',
      component:Chanshan2
    },
    {
      path:'Chanshan3',
    component:Chanshan3
  }
    ]
  
   
  }
]

const router = new VueRouter({
  routes
})

export default router
